<@master template="master/master-loan"  title="部门管理">
    <div class="row" style="opacity: 1;">
        <div class="col-lg-12">
            <div class="row">
                <div class="right-map">
                    <div class="col-lg-12">
                        <div class="main-box">
                            <header class="main-box-header clearfix">
                                <h2>部门管理</h2>
                            </header>
                            <div class="main-box-body clearfix">
                                <div class="panel panel-default">
                                    <div class="panel-body text-center">
                                        <form class="form-inline">
                                            <div class="form-group">
                                                <a id="create_menu" class="btn btn-primary">新建</a>
                                            </div>
                                            <div class="form-group">
                                                <a id="save_menu" class="btn btn-primary">保存</a>
                                            </div>
                                            <div class="form-group">
                                                <a id="delete_menu" class="btn btn-primary">删除</a>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div class="main-box-body clearfix">
                                    <div class="col-sm-4">
                                        <div class="main-box">
                                            <header class="main-box-header clearfix">
                                                <h2>部门列表</h2>
                                            </header>
                                            <div class="main-box-body clearfix">
                                                <div id="treeview-expandible" class=""></div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="main-box">
                                            <header class="main-box-header clearfix">
                                                <h2>编辑部门</h2>
                                            </header>
                                            <div class="main-box-body clearfix">
                                                <form id="menu_edit" role="form" class="form-horizontal">
                                                    <input type="hidden" id="dept_id" name="id" value=""/>
                                                    <div class="form-group">
                                                        <label class="col-lg-2 control-label" for="name">部门名称</label>
                                                        <div class="col-lg-10">
                                                            <input type="text" id="name" name="name"
                                                                   class="form-control"/>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-lg-2 control-label"
                                                               for="parentName">上级部门</label>
                                                        <div class="col-lg-10">
                                                            <input type="text" id="parentName" class="form-control"/>
                                                            <input type="hidden" id="parentId" name="parentId"
                                                                   class="form-control"/>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-lg-2 control-label"
                                                               for="function">部门职能</label>
                                                        <div class="col-lg-10">
                                                            <input type="text" id="function" name="function"
                                                                   class="form-control"/>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-lg-2 control-label" for="sort">排序</label>
                                                        <div class="col-lg-10">
                                                            <input type="text" name="sort" id="sort"
                                                                   class="form-control"/>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</@master>